package com.xyz.dao.logic;

import com.free.ext.mybatis.model.entity.PageResponseModel;
import com.xyz.dao.dao.CCustomerfundflowDao;
import com.xyz.domain.table.CCustomerfundflow;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class CCustomerfundflowLogic {

    @Autowired
    private CCustomerfundflowDao cCustomerfundflowDao;

    public CCustomerfundflow add(CCustomerfundflow cCustomerfundflow){
        return cCustomerfundflowDao.insert(cCustomerfundflow);
    }

    public Integer update(CCustomerfundflow cCustomerfundflow){
        return cCustomerfundflowDao.update(cCustomerfundflow);
    }

    public List<CCustomerfundflow> list(CCustomerfundflow cCustomerfundflow, String orderBy){
        return cCustomerfundflowDao.selectList(cCustomerfundflow, orderBy);
    }

    public Integer delete(Integer key){
        return cCustomerfundflowDao.delete(key);
    }

    public List<CCustomerfundflow> selectFundFlows(CCustomerfundflow cCustomerfundflow){
        return cCustomerfundflowDao.selectFundFlow(cCustomerfundflow);
    }

    public PageResponseModel<CCustomerfundflow> pageInfo(CCustomerfundflow cCustomerfundflow, String orderBy, Integer pageNo, Integer pageSize){
        return cCustomerfundflowDao.selectByPageNo(cCustomerfundflow, orderBy, pageNo, pageSize);
    }

    public Integer insertFundFlowBean(CCustomerfundflow cCustomerfundflow){
        return cCustomerfundflowDao.insertFundFlowBean(cCustomerfundflow);
    }

    public Integer insertFundFlowIcon(CCustomerfundflow cCustomerfundflow){
        return cCustomerfundflowDao.insertFundFlowIcon(cCustomerfundflow);
    }

    public Integer insertFundFlowDiamond(CCustomerfundflow cCustomerfundflow){
        return cCustomerfundflowDao.insertFundFlowDiamond(cCustomerfundflow);
    }

}